﻿using System.Collections;
using System.Collections.Generic;
using Const;
using UnityEngine;

public class Camera : MonoBehaviour
{
    
    private Transform _transform;
    private Vector3 _startPos;
    
    void Start()
    {
        _transform = gameObject.GetComponent<Transform>();
        _startPos = _transform.position;
    }
    
    void Update()
    {
        if (GameManager.ins.state == EState.START)
        {
            _transform.position = _startPos;
        }
    }
}
